import random
# 储存红区数字列表
redList = []
# 储存蓝区数字列表
blueList = []
# 生成红区数字
while len(redList)<5:
    num = random.randint(1,35)
#判断本次随机数字是否重复
    if num not in redList:
        redList.append(num)
print(redList)
# 升序排序
redList.sort()
# 生产蓝区数字
while len(blueList)<2:
    num = random.randint(1,12)
#判断本次随机数字是否重复
    if num not in blueList:
        blueList.append(num)
print(blueList)
# 排序
blueList.sort()
# 合并列表
redList.extend(blueList)
print(redList)